#ifndef PAINTDEVICE_H
#define PAINTDEVICE_H

#include <QObject>

#include "qlui_global.h"
#include "qluiutility.h"

class PaintEngine;

class QLUISHARED_EXPORT PaintDevice
{
public:
    explicit PaintDevice();

    int writeText(QRect rect, const QString& text,
                  Color fontColor=Color(0,0,0), Color backColor=Color(255,255,255));
    int clearRect(QRect rect);
    int clear();

    static void setPaintEngine(PaintEngine *pe);

private:
    static PaintEngine *paint_engine_;
};

#endif // PAINTDEVICE_H
